<?php



class GeoZonesMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.GeoZonesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('geo_zones');
		$tMap->setPhpName('GeoZones');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('GEO_ZONE_ID', 'GeoZoneId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('GEO_ZONE_NAME', 'GeoZoneName', 'string', CreoleTypes::VARCHAR, true, 32);

		$tMap->addColumn('GEO_ZONE_DESCRIPTION', 'GeoZoneDescription', 'string', CreoleTypes::VARCHAR, true, 255);

	} 
} 